package edu.dzxx.utils;

import org.springframework.stereotype.Service;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by ${纪雷} on 2020/02/19
 */

@Service
public class GetNowTime {
    public static String getNow(){
        Date date=new Date();
        SimpleDateFormat format=new SimpleDateFormat("YYYY-MM-dd HH:mm:ss");
        return format.format(date);
    }
}
